package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 奖品表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-03
 */
@TableName("wz_prize")
public class WzPrize extends Model<WzPrize> {

    private static final long serialVersionUID = 1L;

    /**
     * 奖品id
     */
    @TableId(value = "prize_id", type = IdType.AUTO)
    private Long prizeId;
    /**
     * 主标题
     */
    private String title;
    /**
     * 副标题
     */
    private String subtitle;
    /**
     * 封面图片rul
     */
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 奖品详情
     */
    private String details;
    /**
     * 需要消耗金额
     */
    @TableField("pay_amount")
    private Integer payAmount;
    /**
     * 兑换金额
     */
    @TableField("exchange_amount")
    private Integer exchangeAmount;
    /**
     * 总数量
     */
    private Integer quantity;
    /**
     * 剩余库存
     */
    private Integer stock;
    /**
     * 标签:1-特别推荐
     */
    private Integer label;
    /**
     * 中奖概率
     */
    private Float ratio;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 奖品类型：1-商家奖品
     */
    @TableField("prize_type")
    private Integer prizeType;
    /**
     * 类型：1、抽奖；2、商城
     */
    private Integer type;
    /**
     * 子类型
     */
    private Integer subtype;
    /**
     * 内容类型:1-h5；2-自定义；
     */
    @TableField("content_type")
    private Integer contentType;
    /**
     * 内容
     */
    private String content;
    /**
     * 规则
     */
    private String rule;
    /**
     * 状态：1-待审核；2-发布；3-失效
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最近修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 修改人
     */
    @TableField("modifier_id")
    private Integer modifierId;
    /**
     * 编辑人员
     */
    @TableField("modifier_name")
    private String modifierName;


    public Long getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Integer getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Integer payAmount) {
        this.payAmount = payAmount;
    }

    public Integer getExchangeAmount() {
        return exchangeAmount;
    }

    public void setExchangeAmount(Integer exchangeAmount) {
        this.exchangeAmount = exchangeAmount;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getLabel() {
        return label;
    }

    public void setLabel(Integer label) {
        this.label = label;
    }

    public Float getRatio() {
        return ratio;
    }

    public void setRatio(Float ratio) {
        this.ratio = ratio;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getPrizeType() {
        return prizeType;
    }

    public void setPrizeType(Integer prizeType) {
        this.prizeType = prizeType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getContentType() {
        return contentType;
    }

    public void setContentType(Integer contentType) {
        this.contentType = contentType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getModifierId() {
        return modifierId;
    }

    public void setModifierId(Integer modifierId) {
        this.modifierId = modifierId;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    @Override
    protected Serializable pkVal() {
        return this.prizeId;
    }

    @Override
    public String toString() {
        return "WzPrize{" +
        "prizeId=" + prizeId +
        ", title=" + title +
        ", subtitle=" + subtitle +
        ", coverUrl=" + coverUrl +
        ", details=" + details +
        ", payAmount=" + payAmount +
        ", exchangeAmount=" + exchangeAmount +
        ", quantity=" + quantity +
        ", stock=" + stock +
        ", label=" + label +
        ", ratio=" + ratio +
        ", sort=" + sort +
        ", prizeType=" + prizeType +
        ", type=" + type +
        ", subtype=" + subtype +
        ", contentType=" + contentType +
        ", content=" + content +
        ", rule=" + rule +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", modifierId=" + modifierId +
        ", modifierName=" + modifierName +
        "}";
    }
}
